% arara: pdflatex: {options: ['--output-format=dvi']}
% arara: dvisvgm
\documentclass[tikz, margin=3pt, dvisvgm]{standalone}
\usetikzlibrary{animations}
\begin{document}
\begin{tikzpicture}[
    animate/orbit/.style 2 args = {
    myself:shift = {
    along = {
    (0,0) circle [radius=#1]
    } sloped in #2s/10,
    repeats }} ]
  \node :color = {0s = "orange",
                  2s = "red",
                  4s = "orange",
                  repeats}
                  {Sun};
  \begin{scope}[animate={orbit={2.5cm}{365}}]
  \node {Earth};
  \node [animate={orbit={1cm}{28}}] {Moon};
  \end{scope}
  \useasboundingbox (-3.8,-3.8) (3.8,3.8);
\end{tikzpicture}
\end{document}
